%{?!tool_name: %global tool_name hosttools}
%global tool_prefix /opt/%{tool_name}

Name: %{tool_name}-make
Version: 4.3
Release: 1%{?dist}
Summary: GNU make
Provides: make

License: GPLv3+
URL: https://www.gnu.org/software/make
Source0: https://ftp.gnu.org/gnu/make/make-4.3.tar.lz

%description
GNU make

%prep
%setup -q -n make-%{version}

%build
mkdir build-make
cd build-make
../configure --prefix=%{tool_prefix}
make %{?_smp_mflags}


%install
cd build-make
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{tool_prefix}/share/info/dir

%files
%{tool_prefix}/bin/make
%{tool_prefix}/share/locale/*/LC_MESSAGES/make.mo
%{tool_prefix}/include/gnumake.h
%{tool_prefix}/share/info/make.info*
%{tool_prefix}/share/man/man1/make.1

%changelog

